<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="themes/bootstrap/easyui.css" rel="stylesheet">
<link href="themes/icon.css" rel="stylesheet">
<script src="js/jquery.min.js"></script>
<script src="js/jquery.easyui.min.js"></script>
<script src="js/easyui-lang-zh_CN.js"></script>
<title>Insert title here</title>
</head>
<script type="text/javascript">
	$(function() {
		$("#showFuncs").tree({
			url : 'showFuncs',
			onLoadSuccess : function(node, data) {
				$("#showFuncs").tree('expandAll');
			},
			animate : true,
			onClick:function(node){
				if(node.attributes.fpath){
					if($("#showtabs").tabs('exists',node.text)){
						$("#showtabs").tabs('select',node.text);
					}else{
					$("#showtabs").tabs('add',{
						title:node.text,
						selected: true,
						closable:true,
						content:"<iframe src='"+node.attributes.fpath+"' frameborder='0' width='100%' height='100%'></iframe>"
					})}
				}
			}
		})
	});
</script>
<body class="easyui-layout">
	<div data-options="region:'north'" style="height: 130px;">
		${user.UAccount},欢迎您</div>
	<div data-options="region:'west',title:'功能列表'" style="width: 200px;">
		<ul id="showFuncs"></ul>
	</div>
	<div data-options="region:'center'"
		style="padding: 5px; background: #eee;">
		<div id="showtabs" class="easyui-tabs" style="width:100%; height: 100%;" >
			<div title="欢迎" style="padding: 20px; display: none;">欢迎</div>
		</div>
	</div>
</body>
</html>l>